package com.demo.salary.transactionimplementation;

import com.demo.salary.abstracttransactions.ChangeEmployeeTransaction;
import com.demo.salary.payrolldomain.Employee;

public class ChangeNameTransaction extends ChangeEmployeeTransaction {

    String name;

    public ChangeNameTransaction(int empId, String name) {
        super(empId);
        this.name = name;
    }

    @Override
    public void change(Employee employee) {
        employee.setName(name);
    }
}
